﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MessageBoard.Data;

namespace MessageBoard.Tests.Fakes
{
    public class FakeMessageBoardRepository : IMessageBoardRepository
    {
        #region Implementation of IMessageBoardRepository

        public IQueryable<Topic> GetTopics()
        {
            return new Topic[]
                {
                    new Topic()
                        {
                            Id = 1,
                            Body = "This is a body",
                            Created = DateTime.UtcNow,
                            Title = "This is a title"
                        },
                    new Topic()
                        {
                            Id = 2,
                            Body = "This is a body 2",
                            Created = DateTime.UtcNow,
                            Title = "This is a title 2"
                        }
                }.AsQueryable();
        }

        public IQueryable<Reply> GetReplieByTopic(int topicId)
        {
            throw new NotImplementedException();
        }

        public IQueryable<Topic> GetTopicsIncludingReplies()
        {
            throw new NotImplementedException();
        }

        public bool Save()
        {
            throw new NotImplementedException();
        }

        public bool AddTopic(Topic newTopic)
        {
            throw new NotImplementedException();
        }

        public bool AddReply(Reply newReply)
        {
            throw new NotImplementedException();
        }

        #endregion
    }
}
